'use strict';

//var Sysinfo = require('../../models/sysinfoModel');
var Admin = require('../../models/adminModel');

module.exports = function (router) {

    router.get('/', function (req, res) {
//        var model = new Admin();
        var model = new Admin();
        res.render('admin',model);                  // 'admin' 是dust的模块文件
    });



    router.post('/', function (req, res) {
        res.redirect('/admin');
    });

};
